#include "game.h"
#include "ui_game.h"
#include "card.h"
#include "qobject.h"

Game::Game(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Game)
{
    ui->setupUi(this);

}

Game::~Game()
{
    delete ui;
}

void Game::paintEvent(QPaintEvent *ev)
{
    static int pos=0;
    QString pictures[2]={":/res/tabletop.png",""};
    QPainter *painter =new QPainter(this);


    QPixmap pixmap;
    pixmap.load(pictures[pos]);
    pixmap.scaled(512,512);
    painter->drawPixmap(0,0,512,512,pixmap);
}



